<?php

class PostInvoice extends SimpleWebRequest{

	public function send(){
		$response = parent::send();
//                var_dump($response);
		return $response;
	}


	public function __construct( $params ){
		$params['url'] = 'https://directo8.gate.ee/ocra_saleshouse/transport/xmlcore.asp';
		$params['request_data'] = array('xmldata' => $params['xml'], 'put' => '1', 'what' => 'invoices');
		$params['method'] = 'POST';
//		echo '<pre>';
//                var_dump($params);exit;
		parent::__construct( $params );
	}

}